
/* composer */
.composer-wrapper {
  position: relative;
}

.chat-bubble {
  position: relative;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  max-width: 80%;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* When a bubble contains execution details we want it to span full available width */
.chat-bubble.has-executions {
  max-width: 100%;
  width: 100%;
}

.chat-user {
  background: var(--blue1);
  color: var(--blue5);
}

.chat-bot {
  background: var(--light-gray4);
}

.chat-tool {
  background: var(--orange3);
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  margin-right: 6px;
  margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.chat-bubble::after {
  content: attr(data-ts);
  position: absolute;
  right: 6px;
  bottom: -16px;
  font-size: 10px;
  color: #888;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-bubble:hover::after {
  opacity: 1;
}

.chat-bubble code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: var(--code-font, monospace);
}

.chat-bubble p {
  margin: 0.4em 0;
}


/* The scroll-area */
.chat-feed {
  /* Grow to fill left-over space even when empty */
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
}

/* Composer wrapper already has position:relative from inline style */
.composer-send {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;       /* make sure it sits above the textarea text */
}

/* optional mic button placed before send */
.composer-mic {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.composer-attach {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.composer-attachments {
  position: absolute;
  left: 36px;  /* leave space for plus icon */
  right: 40px; /* leave space for send button */
  top: 6px;
  z-index: 1;
  font-size: 12px;
}


.composer-send2 {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.chat-row{
  display:flex;
  width:100%;
  padding-bottom:6px;   /* ← inside the fixed 120 px */
  box-sizing:border-box;
}

.chat-row.user,.chat-row.assistant,.chat-row.tool{ justify-content:flex-start;}
